package com.bitmain.mmst.core.struct;

import com.bitmain.ulnar.aider.JSONAider;

/**
 * 
 *
 * @author Richard - rui.wu@bitmain.com
 * @since 2016年8月10日 
 *
 */
public class DictionaryItem {

	private String id;
	
	private String key;
	
	private String value;
	
	private String name;
	
	private String remark;

	public <T>T getValue(Class<T> clazz){
		if(value == null){
			return null;
		}
		return JSONAider.fromJson(value, clazz);
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
}
